package com.demo.index;

import com.demo.common.model.Blog;
import com.demo.common.model.User;
import com.demo.service.UserService;
import com.demo.sevice.impl.UserServiceImpl;
import com.jfinal.aop.Duang;
import com.jfinal.core.Controller;

/**
 * 本 demo 仅表达最为粗浅的 jfinal 用法，更为有价值的实用的企业级用法
 * 详见 JFinal 俱乐部: http://jfinal.com/club
 * 
 * IndexController
 */
public class IndexController extends Controller {
	
	public void index() {
		setAttr("blogPage", Blog.me.paginate(getParaToInt(0, 1), 4));
		setAttr("user", User.me.paginate(getParaToInt(0, 1), 1));
		render("index.html");
	}
}





